package com.sky.service;

import com.sky.vo.OrderReportVO;
import com.sky.vo.SalesTop10ReportVO;
import com.sky.vo.TurnoverReportVO;
import com.sky.vo.UserReportVO;

import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.time.LocalDate;

/**
 * 目标:
 *
 * @author YUE
 * @date 2024/6/24 10:37
 */
public interface ReportService {
    // 查询营业额
    TurnoverReportVO turnoverStatistics(LocalDate begin, LocalDate end);

    // 用户统计
    UserReportVO countUserByMap(LocalDate begin, LocalDate end);
    // 订单统计
    OrderReportVO getOrdersByMap(LocalDate begin, LocalDate end);
    // 查询销量排名top10的接口
    SalesTop10ReportVO getSalesTop10(LocalDate begin, LocalDate end);
    // 导出运营数据报表
    void exportXlsx(HttpServletResponse response) throws IOException;
}
